package com.ikas.ai.server.module.data.model.tdengine;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.sql.Timestamp;
import java.util.Date;

@Data
@TableName("t_data_his")
public class RealDataHis {

    @TableField(value = "groupid")
    private Long groupid = 1L;

    /**
     * 测点类别 0:遥信 1:遥测
     */
    @TableField(value = "metetype")
    private Integer meteType;

    /**
     * 测点id
     */
    @TableField(value = "meteid")
    private Long meteId;

    /**
     * 测点编号
     */
    @TableField(value = "metecode")
    private String meteCode;

    /**
     * 测点名称
     */
    @TableField(value = "metename")
    private String meteName;

    /**
     * 测点值
     */
    @TableField(value = "value")
    private String value;

    /**
     * 测点值最高创建时间
     */
    @TableField(value = "createtime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss.SSS", timezone = "GMT+8")
    private Timestamp createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss.SSS", timezone = "GMT+8")
    @TableField("idtime")
    private Timestamp idTime;

}
